package com.myk.game.gobangchess.signs;


import com.myk.game.gobangchess.Sign;

/**
 * 文本标记
 */
public class TextSign extends Sign {

    private final int index; //格子位置，从左往右-从上往下一个个数的序号。
    private final String value; //单个文字
    private final String color; //颜色 "#FFFFFFFF"
    private final int angle; //旋转角度 0-360°

    public TextSign(int index, String value, String color) {
        this.index = index;
        this.value = value;
        this.color = color;
        this.angle = 0;
    }

    public TextSign(int index, String value, String color,int angle) {
        this.index = index;
        this.value = value;
        this.color = color;
        this.angle = angle;
    }

    @Override
    public String getSignInfo() {
        return type + "," + index + "," + value + "," + color + "," + angle;
    }
}
